import request from '@/utils/request'

//form
export function getFileList(query) {
  return request({
    url: '/api/file/lists',
    method: 'get',
    params: query
  })
}

export function uploadFile(data) {
  return request({
    url: '/api/file/upload',
    method: 'post',
    uploadfile:true,
    data,
  })
}

export function deleteFile(data) {
  return request({
    url: '/api/file/del',
    method: 'post',
    data
  })
}
